<html>
<head><meta charset="utf-8"><title>Internal Compiler Error when building  with &quot;compiler-docs&quot; · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html">Internal Compiler Error when building  with &quot;compiler-docs&quot;</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="236828097"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236828097" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> dfireBird <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236828097">(Apr 30 2021 at 12:43)</a>:</h4>
<p>When I try to build the docs with <code>compiler-docs = true</code> I get a <strong>Internal Compiler Error</strong> while it's documenting <code>rustc_macros</code></p>
<p>Full error log: <a href="https://pastecord.com/yrulafajoq.log">https://pastecord.com/yrulafajoq.log</a></p>



<a name="236829234"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236829234" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236829234">(Apr 30 2021 at 12:54)</a>:</h4>
<p><span class="user-mention" data-user-id="341044">@dfireBird</span> documenting with stage0 doesn't work, try --stage 1. If you haven't changed rustdoc you can set <code>download-rustc = true</code> which saves most of the time (it works even if you changed the docs).</p>



<a name="236829312"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236829312" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236829312">(Apr 30 2021 at 12:55)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/79980">https://github.com/rust-lang/rust/issues/79980</a></p>



<a name="236834685"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236834685" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> dfireBird <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236834685">(Apr 30 2021 at 13:35)</a>:</h4>
<p>Thanks <span class="user-mention" data-user-id="232545">@Joshua Nelson</span> that worked!  Also  I get this error</p>
<div class="codehilite"><pre><span></span><code>error while loading shared libraries: libLLVM-12-rust-1.53.0-nightly.so: cannot open shared object file: No such file or directory
</code></pre></div>
<p>But I solve it using <code>LD_LIBRARY_PATH=./build/x86_64-unknown-linux-gnu/stage1/lib/</code>. Is that the correct way?</p>
<p>P.S: I have <code>download-llvm</code> set to true.</p>



<a name="236835168"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236835168" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236835168">(Apr 30 2021 at 13:38)</a>:</h4>
<p>where did the error come from?</p>



<a name="236835195"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236835195" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236835195">(Apr 30 2021 at 13:38)</a>:</h4>
<p>but yeah in general that looks familiar, lots of places should be adding that path but aren't</p>



<a name="236835689"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236835689" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> dfireBird <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236835689">(Apr 30 2021 at 13:42)</a>:</h4>
<p>Idk where it comes from but here is the short error log:</p>
<div class="codehilite"><pre><span></span><code>Documenting stage2 rustdoc (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.42s
Documenting error index (x86_64-unknown-linux-gnu)
Building stage1 tool error_index_generator (x86_64-unknown-linux-gnu)
    Finished release [optimized] target(s) in 0.19s
/home/firebird/Projects/rust/build/x86_64-unknown-linux-gnu/stage1-tools-bin/error_index_generator: error while loading shared libraries: libLLVM-12-rust-1.53.0-nightly.so: cannot open shared object file: No such file or directory
</code></pre></div>



<a name="236835997"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236835997" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236835997">(Apr 30 2021 at 13:44)</a>:</h4>
<p>ok, it comes from the error index, I think there's an issue open for that</p>



<a name="236836034"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Internal%20Compiler%20Error%20when%20building%20%20with%20%22compiler-docs%22/near/236836034" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Internal.20Compiler.20Error.20when.20building.20.20with.20.22compiler-docs.22.html#236836034">(Apr 30 2021 at 13:44)</a>:</h4>
<p>yeah this looks like <a href="https://github.com/rust-lang/rust/issues/80096">https://github.com/rust-lang/rust/issues/80096</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>